package io.linfeng.modules.app.controller;

import io.linfeng.common.utils.Result;
import io.linfeng.modules.admin.entity.NavigationEntity;
import io.linfeng.modules.admin.service.NavigationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 导航栏模块
 *
 * @author JL.Yu
 * @email linfengtech001@163.com
 * @date 2023-02-04 22:14:59
 */
@RestController
@RequestMapping("app/navigation")
@Api(tags = "移动端——导航栏管理")
public class AppNavigationController {


    @Autowired
    private NavigationService navigationService;


    @PostMapping("/getNav")
    @ApiOperation("导航栏查询")
    public Result<List<NavigationEntity>> getNav(){
		List<NavigationEntity> list=navigationService.getNav();

        return new Result<List<NavigationEntity>>().ok(list);
    }

}
